<?php
namespace app\index\controller;
use app\index\controller\BaseController;
use app\common\model\Tag;
class TagController extends BaseController{
  public function index(){
    // $this->assign("site_root", "");
    // return $this->fetch();
  }

  public function typeahead_search(){
    // $keyword = I("keyword", "", "urldecode");
    return json([]);
    // $tags = D("Tag")->search($keyword);
    // $names = array();
    // foreach ($tags as $t) {
    //   array_push($names, $t["name"]);
    // }
    // $this->ajaxReturn($names);
  }
}